package com.alibaba.itu.tala.util;

public class StringUtil {

	public static boolean isEmpty(String s) {
		return s == null || s.length() <= 0;
	}

	public static void main(String[] args){
        String svnBranchUrl = "http://svn.alibaba-inc.com/repos/ali_itbu/eq/code/branches/skyTrails_zcp_20110119";
        if(svnBranchUrl.lastIndexOf('/') != -1){
            svnBranchUrl = svnBranchUrl.substring(0, svnBranchUrl.lastIndexOf('/'));
        }
        System.out.println(svnBranchUrl);
        
    }
}
